<html>
<head>
<title>强制点击广告代码</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script language="javascript">
var num = 2; 
var mypage = 'http://www.baidu.com'; 
var pissoff = '请先点击上面的链接！';
allow = Array();
allow[num] = 2;
function gotoit(link){
if (link != num){
allow[link] = 2;
} else {
for (i=1;i<=num;i++){
if (allow[i] != 2){
i = num + 1;
lemmeIn = 0;
} else {
lemmeIn = 1;
}
}
if (lemmeIn == 1){
window.location = mypage;
} else {
alert(pissoff);
}
}
}
//--->
</script>
</head>
<body>
<a href="/" target="_blank" onClick="gotoit(1)"><img src="http://www.codefans.net/ad_include/59.cntop.gif" alt="源码爱好者" border="0" /></a><br><br><br><br>
<a href="javascript:gotoit(num)">请先点击上面的链接</a>
</body>
</html>